package com.mindspore.posewish;


import android.util.Log;

import java.util.ArrayList;
import java.util.List;


public class PostData {
    // Person -> keyPoint -> position
    private List<Posenet.Person> data;

    public PostData(){
        data = new ArrayList<>();
    }

    public void push(Posenet.Person person) {
//        Log.d("x坐标",String.valueOf(person.keyPoints.get(0).position.x));
        data.add(person);
    }

    public void clean(){
        data = null;
    }
    public List<Posenet.Person> readAll(){
        return data;
    }

    public Posenet.Person get(int i){
        return data.get(i);
    }
    public int length(){
        return data.size();
    }
}
